package com.xy.service.impl

import java.util

import com.xy.dao.UserMapper
import com.xy.domain.User
import com.xy.service.UserService
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Service

/**
  * Created by xiaoyuan on 2017/11/15.
  */
@Service
class UserServiceImpl extends UserService{
  @Autowired
  val userMapper:UserMapper = null
  override def add(user: User): Int = userMapper.add(user)

  override def update(user: User): Int = userMapper.update(user)

  override def deleteByIds(ids: Array[String]): Int = userMapper.deleteByIds(ids)

  override def queryLearnResouceList(params: util.Map[String, AnyRef]): util.List[User] = userMapper.queryUserList(params)
}
